<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('AdminTdk/index')}">TDK管理</a></li>
        <li class="active"><a>编辑TDK</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminTdk/editPost')}">

        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>名称:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="name" value="{$row.name}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>标题规则:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="title_rule" placeholder="标题规则%s" value="{$row.title_rule}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>关键字规则:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="keywords_rule" placeholder="关键字规则%s" value="{$row.keywords_rule}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>描述规则:</label>
            <div class="col-md-6 col-sm-10">
                <textarea type="text" class="form-control" name="description_rule" placeholder="描述规则%s"  >{$row.description_rule}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>过滤字符:</label>
            <div class="col-md-6 col-sm-10">
                <textarea type="text" class="form-control" name="filter_str" placeholder="多个过滤字符用','分隔" >{$row.filter_str}</textarea>
            </div>
        </div>
        <input type="hidden" name="id" value="{$row.id}">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
            <a class="btn btn-default" href="__URL__">返回</a>
        </div>
    </form>

</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>